import * as THREE from 'three'
import Experience from './Experience'
export default class Cube {
    constructor() {
        this.experience = new Experience();
        this.scene = this.experience.scene;

        this.create();
    }

    create() {
        const geometry = new THREE.BoxGeometry(1, 1, 1);
        // 材质
        const material = new THREE.MeshBasicMaterial({ color: 0x00ff00 });
        // 合成网格模型
        const mesh = new THREE.Mesh(geometry, material);
        this.scene.add(mesh)
    }
}